<!doctype html public "-//w3c//dtd html 4.0 transitional//en">


<!-- WARNING! This file is generated. -->
<!-- To alter documentation, edit files in src directory -->


<html><head>
<title>Use Non-Default Prefix</title>
<link rel="stylesheet" href="utplsql.css" content="text/css">
<meta name="keywords" content="utPLSQL, PL\SQL, Unit Testing, Framework, Oracle"/>
<meta name="description" content="Unit Testing PL\SQL"/>
<meta name="title" content="Use Non-Default Prefix"/>
<meta name="author" content="Steven Feuerstein, Chris Rimmer, Patrick Barel"/>
<meta name="copyright" content="(C) 2000-2005 Steven Feuerstein, Chris Rimmer, Patrick Barel"/>
</head><body>
<div class="purple_bar"><a href="index.html"><img src="utplsql.jpg" border=0></a></div>
<p>[ <A href="index.html">Home</A>
 | <A href="started.html">Getting Started</A>
 | <A href="buildpack.html">Build Test Packages</A>
 | <A href="examples.html">Examples</A>
 | <A href="userguide.html">User Guide</A>
 | <A href="release.html">Release Notes</A>
 | <A href="map.html">Document Map</A> ]</p>
<p><A href="samepack.html">&lt; Previous Section: Put Test Code in Same Package</A> | <A href="suite.html">Next Section: Create and Run a Test Suite &gt;</A></p>
<!-- Begin utPLSQL Body -->
<!-- $Id: prefix.html,v 1.3 2002/07/25 12:24:57 chrisrimmer Exp $ -->
<h1>
Use Non-Default Prefix</h1>

<p>The default prefix for utPLSQL is "ut_", but you don't have to use that
prefix. There are some situations where you absolutely will not want to
use the default prefix. Suppose, for example, that you have written a package
with ten procedures, each of which <i>already</i> have "ut_" as a prefix
(it might stand for "Unified Technologies" or "Underside Treatment: or...well,
you get the picture).
<p>Since this prefix is not hard-coded into utPLSQL, you can very easily
specify your own prefix. You can do this when you run a test, as in:
<pre>SQL&gt; utPLSQL.test ('te_employee', prefix_in =&gt; 'test_');</pre>
You can also specify a prefix when you add a package to a test suite, as
in:
<pre>SQL&gt; utPackage.add ('mysuite', 'mypackage' prefix_in =&gt; 'test_');</pre>
Of course, when you specify a non-default prefix, you must also build your
test package using that prefix. If you plan to generate a starting point
for your package with utGen, be sure to specify your prefix at that point,
as in:
<pre>SQL&gt; utGen.testpkg('mypackage' prefix_in =&gt; 'test_');</pre>
For an example of a package with a non-default prefix, check out test_te_employee.pks
and test_te_employee.pkb (Both to be found in the Examples directory of the utPLSQL distribution).

<!-- End utPLSQL Body -->
<p><A href="samepack.html">&lt; Previous Section: Put Test Code in Same Package</A> | <A href="suite.html">Next Section: Create and Run a Test Suite &gt;</A></p>
<div class="purple_bar"><a href="index.html"><img src="utplsql.jpg" border=0></a></div>
<p class="copyright">Copyright (C) 2000-2005 <A href="mailto:steven@stevenfeuerstein.com">Steven Feuerstein<A>, <A href="mailto:c@24.org.uk">Chris Rimmer<A>, <A href="mailto:pbarel@vda.nl">Patrick Barel<A> All rights reserved</p>
</body></html>